package com.woniuxy.dr_mall.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.dr_mall.entity.DrMenu;
import com.woniuxy.dr_mall.global.Global;
import com.woniuxy.dr_mall.mapper.DrMenuMapper;
import com.woniuxy.dr_mall.service.IDrMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 张哲轩
 * @since 2021-08-11
 */
@Service
public class DrMenuServiceImpl extends ServiceImpl<DrMenuMapper, DrMenu> implements IDrMenuService {
    @Autowired
    private DrMenuMapper drMenuMapper;

    @Override
    public List<DrMenu> getByDrManagerId(int managerId) {
        return drMenuMapper.getMenusByDrManagerId(managerId);
    }

}
